<!DOCTYPE html>
<html lang="en"xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap.min.css"></link>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="bootstrap.min.js"></script>
</head>
<body>
<div class="row">
    <div class="col-lg-4">
        <form method="post" id="registForm" class="form-horizontal" action="/updatePublicAccount.html">
            <input type="hidden" name="id" th:value="${publicAccount.id}" >
            <div class="form-group">
                <label class="col-sm-3 control-label">账号类型：</label>
                <div class="col-sm-9">
                    <select class="form-control" name="accountType.id">
                        <option th:each="type:${accountTypes}" th:value="${type.id}" th:text="${type.name}" th:selected="${publicAccount.accountType.id != null ? type.id==publicAccount.accountType.id:''}" ></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">名称：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="name" th:value="${publicAccount.name}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">公众号：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control"  name="account" th:value="${publicAccount.account}" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建日期：</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control"  th:value="${#dates.format(publicAccount.createdTime,'yyyy-MM-dd')}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">认证：</label>
                <div class="col-sm-9">
                    <label class="control-label"><input type="radio" name="status" value="1" th:checked="${publicAccount.status==1?'checked':''}">已认证</label>
                    <label class="control-label"><input type="radio" name="status" value="0" th:checked="${publicAccount.status==0?'checked':''}" >未认证</label>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                    <button type="submit" id="btn" class="btn btn-success">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>